package pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Objects;

@Data
@TableName("type")
public class Type {
    @TableId
    private Long tId;
    
    private String tName;
    private String tColor;
    @TableLogic
    private Boolean tDelflag;
   
    private Boolean tStatus;
  
    private Timestamp tCreateTime;
    
    private Timestamp tUpdateTime;
    
    private String tCreateUser;
   
    private String tUpdateUser;

    public Long gettId() {
        return tId;
    }

    public void settId(Long tId) {
        this.tId = tId;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String gettColor() {
        return tColor;
    }

    public void settColor(String tColor) {
        this.tColor = tColor;
    }

    public Boolean gettDelflag() {
        return tDelflag;
    }

    public void settDelflag(Boolean tDelflag) {
        this.tDelflag = tDelflag;
    }

    public Boolean gettStatus() {
        return tStatus;
    }

    public void settStatus(Boolean tStatus) {
        this.tStatus = tStatus;
    }

    public Timestamp gettCreateTime() {
        return tCreateTime;
    }

    public void settCreateTime(Timestamp tCreateTime) {
        this.tCreateTime = tCreateTime;
    }

    public Timestamp gettUpdateTime() {
        return tUpdateTime;
    }

    public void settUpdateTime(Timestamp tUpdateTime) {
        this.tUpdateTime = tUpdateTime;
    }

    public String gettCreateUser() {
        return tCreateUser;
    }

    public void settCreateUser(String tCreateUser) {
        this.tCreateUser = tCreateUser;
    }

    public String gettUpdateUser() {
        return tUpdateUser;
    }

    public void settUpdateUser(String tUpdateUser) {
        this.tUpdateUser = tUpdateUser;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Type type = (Type) o;
        return tId == type.tId && Objects.equals(tName, type.tName) && Objects.equals(tColor, type.tColor) && Objects.equals(tDelflag, type.tDelflag) && Objects.equals(tStatus, type.tStatus) && Objects.equals(tCreateTime, type.tCreateTime) && Objects.equals(tUpdateTime, type.tUpdateTime) && Objects.equals(tCreateUser, type.tCreateUser) && Objects.equals(tUpdateUser, type.tUpdateUser);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tId, tName, tColor, tDelflag, tStatus, tCreateTime, tUpdateTime, tCreateUser, tUpdateUser);
    }
}
